package com.learn.english.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.util.*;

/**
 * @author TISNIW
 * @version 1.0
 * @desc
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("course_chapter")
public class CourseChapter {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("course_id")
    private Integer courseId;
    @TableField("title")
    private String title;
    @TableField("desc")
    private String desc;
    @TableField("sort")
    private Integer sort;
    @TableField("is_published")
    private Boolean isPublished;
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private Date createdAt;
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;
}
